package cn.charmaine.org.mapper;

import cn.charmaine.basic.base.mapper.IBaseMapper;
import cn.charmaine.org.domain.Employee;
import cn.charmaine.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IEmployeeMapper extends IBaseMapper<Employee> {
   /* //查询所有管理员
    List<Employee> selectEmployeeAll();

    //新增
    void insertEmployee(Employee employee);

    //根据id删除
    void deleteEmployeeById(Long id);

    //修改
    void updateEmployee(Employee employee);

    //基于id查询
    Employee selectEmployeeById(Long id);

    //查询
    Long count(EmployeeQuery query);

    //分页查询+条件
    List<Employee> rows(EmployeeQuery query);

    //批量删除
    void batchDelete(List<Long> ids);*/

    Employee selectByUsername(String username);


    void deleteRelationByEmpId(Long id);

    void insertRelation(@Param("eid") Long eid,@Param("rid") Long rid);
    /*void insertRelation(@Param("id") Long id , @Param("roles") List<Long> roles);*/

    Employee selectByLogininfoId(Long id);

    List<Employee> clerkList(Long shopId);
}
